
{include file="public/open_head" /}

<div class="ok-body" >

    <div class="layui-fluid" >

        <form class="layui-form" style="margin-top: 30px;">

            {:token()}
            <input type="hidden" name="id" value="{$info.id}" >

            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 120px;">电梯楼层权限：</label>
                <div class="layui-input-block input-custom-width" style="margin-left: 150px;">
                    <input type="checkbox" name="floorinfo[]" value="7F" title="7F" lay-filter="" {if $info && in_array("7F",$info.floorinfo)}checked{/if} >
                    <input type="checkbox" name="floorinfo[]" value="9F" title="9F" lay-filter="" {if $info && in_array("9F",$info.floorinfo)}checked{/if} >
                    <input type="checkbox" name="floorinfo[]" value="10F" title="10F" lay-filter="" {if $info && in_array("10F",$info.floorinfo)}checked{/if} >
                    <input type="checkbox" name="floorinfo[]" value="12F" title="12F" lay-filter="" {if $info && in_array("12F",$info.floorinfo)}checked{/if} >
                    <input type="checkbox" name="floorinfo[]" value="13F" title="13F" lay-filter="" {if $info && in_array("13F",$info.floorinfo)}checked{/if} >
                </div>
            </div>


            {:widget('forms/submit',array('add','立即保存',2))}

        </form>

    </div >


</div >



<script >


    layui.use(['element', 'form', 'jquery', 'upload','lucky'], function () {
        var element = layui.element;
        var form = layui.form;
        var $ = layui.jquery;
        var upload = layui.upload;
        var lucky=layui.lucky;

        /**
         * 提交表单数据
         */
        form.on('submit(add)', function (data) {
            lucky.FormSubmit("{:url('department/setfloor')}", data.field, "table_id", 1);
            return false;
        });




    })
</script >


</body>
</html>